<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class GoodsImage extends Model
{
    protected $table="goods_images";
    protected $fillable = [
            "img","order_num","goods_id",
    ];
    //不设置created time 和updated time getDefaultState 
    public $timestamps=false;

    public function goods(){
        return $this->belongsTo(Goods::class);
    }
}
